//
//  PKReadMainPageCollectionViewCell.m
//  PianKe
//
//  Created by lanou on 15/10/10.
//  Copyright (c) 2015年 lanou. All rights reserved.
//

#import "PKReadMainPageCollectionViewCell.h"
#import <UIImageView+WebCache.h>
@implementation PKReadMainPageCollectionViewCell
-(instancetype)initWithFrame:(CGRect)frame
{
    self=[super initWithFrame:frame];
    if (self) {
        _pictureImag=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 120, 120)];
        [self.contentView addSubview:_pictureImag];
        _worksName=[[UILabel alloc]initWithFrame:CGRectMake(0, 90, 120, 30)];
        _worksName.font=[UIFont systemFontOfSize:12];
        [self.contentView addSubview:_worksName];
        
    }
    return self;
}
-(void)setReadMainListModel:(PKReadMainListModel *)readMainListModel
{_readMainListModel=readMainListModel;
    [_pictureImag sd_setImageWithURL:[NSURL URLWithString:readMainListModel.coverimg]];
    _worksName.text=[readMainListModel.name stringByAppendingString:readMainListModel.enname];
}
@end
